package com.qfedu.edu.slot.generate;

import com.qfedu.edu.slot.base.Ordered;
import com.qfedu.edu.slot.base.Slot;

public abstract class GenerateSlot implements Slot, Ordered,Comparable<GenerateSlot> {

    /**
     *这个是通用的， 比较两个Slot的顺序,数字越小越先执行
     * @param o
     * @return
     */
    @Override
    public int compareTo(GenerateSlot o) {
        return this.getOrder()-o.getOrder();
    }
}
